package com.sp;

public class CPU_Num {
    public static void main(String[] args) {
        Runtime runtime = Runtime.getRuntime();
        int i = runtime.availableProcessors();
        System.out.println("当前的CPU数量: " + i);
    }
}
